<?php 
session_start();
?>

<?PHP
$_SESSION["fechDesde"] = isset($_POST['txtFechDesde']) ? $_POST['txtFechDesde'] : '';
$_SESSION["fechHasta"] = isset($_POST['txtFechHasta']) ? $_POST['txtFechHasta'] : '';
$_SESSION["allfechas"] = isset($_POST['checkbox']) ? $_POST['checkbox'] : '';
$_SESSION["utilizacli1"] = isset($_POST['checkbox2']) ? $_POST['checkbox2'] : '';
$_SESSION["utilizacli2"] = isset($_POST['checkbox3']) ? $_POST['checkbox3'] : '';
$_SESSION["allcli"] = isset($_POST['checkbox4']) ? $_POST['checkbox4'] : '';
$_SESSION["cli1"] = isset($_POST['Cli1']) ? $_POST['Cli1'] : '';
$_SESSION["cli2"] = isset($_POST['cli2']) ? $_POST['cli2'] : '';
$_SESSION["CURSO"] = isset($_POST['CURSO']) ? $_POST['CURSO'] : '';

if( isset($_POST['LUNES']) ) {
    $_SESSION["LUNES"] = 1;    
}
else {
    unset($_SESSION["LUNES"]); 
}
if( isset($_POST['MARTES']) ) {
    $_SESSION["MARTES"] = 1;    
}
else {
    unset($_SESSION["MARTES"]); 
}
if( isset($_POST['MIERCOLES']) ) {
    $_SESSION["MIERCOLES"] = 1;    
}
else {
    unset($_SESSION["MIERCOLES"]); 
}
if( isset($_POST['JUEVES']) ) {
    $_SESSION["JUEVES"] = 1;    
}
else {
    unset($_SESSION["JUEVES"]); 
}
if( isset($_POST['VIERNES']) ) {
    $_SESSION["VIERNES"] = 1;    
}
else {
    unset($_SESSION["VIERNES"]); 
}
if( isset($_POST['SABADO']) ) {
    $_SESSION["SABADO"] = 1;    
}
else {
    unset($_SESSION["SABADO"]); 
}

$idrep = isset($_SESSION["repORTE"]) ? $_SESSION["repORTE"] : 0;

$_SESSION["rep"] = "RepAlumnosCarrera.php";
$norep = isset($_POST['hiddenField']) ? $_POST['hiddenField'] : 0;
?>
<?php if(!$norep=="SI"){?>
<script type="text/javascript">
    var URL = "<?PHP echo $_SESSION["rep"];?>?carrera=<?=$_POST['carrera']?>";
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=500,left = 682.5,top = 412.5');");
    document.location.href='BaseNotasAlumonsCarrera.php'
</script>
<?php }?>